<?php $this->_extends('_layouts/admin_layout'); ?>

<?php $this->_block('title'); ?> - 欢迎<?php $this->_endblock(); ?>

<?php $this->_block('contents'); ?>
<table broder="0" width="100%">
    <tbody>
        <tr><td>Title</td><td cols="2" width="20">Action</td></tr>
        <?php foreach($articles as $article): ?>
        <tr><td><a href="<?php echo url('default/view', array('id'=>$article->id)); ?>"><?PHP echo $article->title; ?></a></td> <td width="10"><a href="<?php echo url('admin/edit', array('id'=>$article->id)); ?>">EDIT</a></td><td width="10"><a href="<?php echo url('admin/del', array('id'=>$article->id)); ?>" onclick="return confirm('you sure del it?');">DEL</a></td></tr>

<?php endforeach;?>
</tbody>
</table>
<?php $this->_endblock('contents'); ?>